package Year22_Month03.day01;

import java.util.Scanner;

public class Main4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int number = a > b ? b : a;
        int key = a > b ? a : b;
        System.out.println(fun(number,key));
    }
    public static int fun(int number,int key){
        for (int i = 1; i <= number; i++) {
            if(key * i % number == 0){
                return key * i;
            }
        }
        return 0;
    }
}
